﻿using System.Reflection;
using CompactMapper.Orm.Annotations;

namespace CompactMapper.Orm.UnitOfWork.Mappings.Meta.PropertyInfos
{
    public class PropertyInfoPersistenceAttributePair
    {
        public PropertyInfo PropertyInfo { get; private set; }
        public PersistenceAttribute PersistenceAttribute { get; set; }

        public PropertyInfoPersistenceAttributePair(PropertyInfo propertyInfo, PersistenceAttribute persistenceAttribute)
        {
            PropertyInfo = propertyInfo;
            PersistenceAttribute = persistenceAttribute;
        }
    }
}